

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text("Flutter_Learn"),
        ),
        body: HomeContent()
      ),
    );
    return Center(
      child: Text("nihao")
    );
  }

}

class HomeContent extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Center(
      child: Container(
        child: Text(
            "学习Flutter01学习Flutter01学习Flutter01学习Flutter01学习Flutter01学习Flutter01学习Flutter01学习Flutter01学习Flutter01,",
          textAlign: TextAlign.center,
          overflow: TextOverflow.ellipsis,
          maxLines: 2,
          style: TextStyle(
            fontSize: 20.0
          ),

        ),
        height: 300.0,
        width: 300.0,
        decoration: BoxDecoration(
          color: Colors.yellow,
          border: Border.all(
            color: Colors.blue,
            width: 2.0,

          )
        ),
      ),
    );
  }

}

// class Center extends StatelessWidget {
//
// }